package com.example.mapper;

import com.alibaba.druid.Constants;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Movie;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.model.MovieDTO;
import org.apache.hadoop.yarn.webapp.hamlet.HamletSpec;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.yaml.snakeyaml.scanner.Constant;

import java.util.List;


/**
* @author Administrator
* @description 针对表【movie】的数据库操作Mapper
* @createDate 2023-03-20 09:44:37
* @Entity com.example.entity.Movie
*/
@Mapper
public interface MovieMapper extends BaseMapper<Movie> {

    IPage<MovieDTO> selectPageList(Page page, @Param("list") List<String> list,@Param("key")String searchKeyWord);

    MovieDTO selectInfo(@Param("id") String id);

    IPage<MovieDTO> selectHotPage(Page page);

    IPage<MovieDTO> selectNewPage(Page page);

    IPage<MovieDTO> selectSearch(Page page, @Param("ew") LambdaQueryWrapper ew);

    List<MovieDTO> selectRecommendiation(@Param("ew") LambdaQueryWrapper<Movie> ew);
}




